package com.itheima.patterns.structuralpattern.adapter.class_adapter;

/*
* (1) 适配器类
* (2) 当前电脑只能读取 SD 卡，现在想通过适配器模式读取 TF 卡
* */
public class ADAdapterTF extends TFCardImpl implements SDCard{
    
    @Override
    public String readSD() {
        System.out.println("adapter read tf card");
        return readTF();
    }
    
    @Override
    public void writeSD(String msg) {
        System.out.println("adapter write tf card");
        writeTF(msg);
    }
}